Talmud for Maaser Sheni 3:7
אִילָן שֶׁהוּא עוֹמֵד בִּפְנִים וְנוֹטֶה לַחוּץ, אוֹ עוֹמֵד בַּחוּץ וְנוֹטֶה לִפְנִים, מִכְּנֶגֶד הַחוֹמָה וְלִפְנִים, כְּלִפְנִים. מִכְּנֶגֶד הַחוֹמָה וְלַחוּץ, כְּלַחוּץ. בָּתֵּי הַבַּדִּים שֶׁפִּתְחֵיהֶן לִפְנִים וַחֲלָלָן לַחוּץ, אוֹ שֶׁפִּתְחֵיהֶן לַחוּץ וַחֲלָלָן לִפְנִים, בֵּית שַׁמַּאי אוֹמְרִים, הַכֹּל כְּלִפְנִים. וּבֵית הִלֵּל אוֹמְרִים, מִכְּנֶגֶד הַחוֹמָה וְלִפְנִים, כְּלִפְנִים. מִכְּנֶגֶד הַחוֹמָה וְלַחוּץ, כְּלַחוּץ:
If a tree stands inside [the walls of Jerusalem] and leans outside, or stands outside and leans inside: from [the part of the tree] aligned with the wall and inwards should be considered inside, and from [the part of the tree] aligned with the wall and outwards should be considered outside. Olive press buildings whose openings are inside the wall but whose chambers are outside the wall, or whose openings are outside the wall but whose chambers are inside the wall: Beit Shammai says: all of it should be considered inside. Beit Hillel says: from [the part of the buildings] aligned with the wall and inwards should be considered inside, and from [the part of the buildings] aligned with the wall and outwards should be considered outside.
Jerusalem Talmud Maaser Sheni
If chambers are built in the holy precinct and open to the profane domain, their insides are profane but their roofs holy85In the profane domain, Second Tithe and simple sacrifices (family sacrifices) may be consumed. In the holy part, most-holy sacrifices may be consumed and simple sacrifices be slaughtered. (Most-holy sacrifices must be slaughtered inside the precinct, North of the altar.). If they are built in the profane domain but open to the holy precinct, their insides are holy but their roofs profane. If they are built in the holy and the profane and open both to the holy and the profane86The chamber of the fireplace, where the Cohanim kept watch during the night and from which a Cohen who became impure could first descend to a subterranean miqweh and then leave directly into the profane domain as a ṭevul yom., their insides and their roofs, over the holy and in direction of the holy they are holy87The border between holy and profane domain was indicated by a mosaic strip. This strip takes the function of the wall which belongs to both domains., over the profane and in direction of the profane they are profane.